package com.Enum;

public class Test2Application {
    public static void main(String[] args) {
      check(Constant2.BOY);
    }
    public static void check(Constant2 sex){
        switch(sex){
            case BOY:
                System.out.println("展示男生看的东西");
                break;
            case GIRL:
                System.out.println("展示女生看的东西");
                break;
        }
    }
}
